package com.eyolo.grpcclient.web;

import com.eyolo.grpcclient.grpc.GrpcClientManager;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description TODO
 * @Author fanhailong
 * @Date 2021/12/14 11:03
 **/
@RestController
@RequestMapping
public class ClientController {

    @Resource
    private GrpcClientManager grpcClientManager;

    @GetMapping()
    public Object applyExchange() {
        return grpcClientManager.applyExchange();
    }
}
